import request from "@/utils/request";

//图层类型列表（铁塔视角）
export function listByCondition(data) {
  return request({
    url: "/ttbdm/layerType/listByCondition",
    method: "get",
    params: data,
  });
}

//图形类型名称校验
export function layerTypeNamesRepeat(query) {
  return request({
    url: "/bdm/layerType/layerTypeNamesRepeat",
    method: "post",
    data: query,
  });
}

//新增修改图层类型（铁塔视角）
export function addOrModify(query) {
  return request({
    url: "/ttbdm/layerType/addOrModify",
    method: "post",
    data: query,
  });
}

//删除图层类型校验
export function deleteCheck(query) {
  return request({
    url: "/bdm/layerType/deleteCheck",
    method: "post",
    data: query,
  });
}
